package com.pro.back.bean.common;

import lombok.Data;

@Data
public class ApiRes<T> {

    public int code = 200;
    public Object data;
    public String message;

    public ApiRes(){}

    public ApiRes (Object data) {
        this.code = 200;
        this.data = data;
    }

    public ApiRes(int code,Object data) {
        this.code = code;
        this.data = data;
    }

    public ApiRes (int code,Object data,String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }

}
